package homework.Demo3;

import java.util.ArrayList;
import java.util.Arrays;

public class Test {
    public static void main(String[] args) {

        String[] s = {"苹果手机", "华为手机", "三洋踏板摩托", "迪拜7日游", "苹果笔记本",
                "联想笔记本", "小米空气净化器", "格力空调", "海尔冰箱", "海信电视"};

        ArrayList<String> prizes = new ArrayList<>(Arrays.asList(s));
        Group group = new Group(prizes);
        new Thread(group, "第一组").start();
        new Thread(group, "第二组").start();
    }
}
